package com.alander.nexusgo.framework.file.starter.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "aliyun.oss")
@Data
public class OssProperties {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String domain;
    private String maxFileSize;
    private String protocol;

    public boolean isUseHttps() {
        return "https".equals(protocol);
    }
}

